﻿<%@ Page Title="Frontdesk - Get a tag to display the form on your website" Language="C#"
    MasterPageFile="~/Views/Shared/FrontdeskClean.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Use Your Form on Your Own Webpage!</h2>
    <p class="justify">
        You've designed the perfect form, now go ahead and use it on your own website. The
        code appears below for you to copy and paste. About the only thing you might want
        to change is the form height, which you can do by altering the "height" property.
        Enjoy!</p>
    <%: Html.TextArea("FormTag", "<iframe allowTransparency=\"true\" frameborder=\"0\" scrolling=\"no\" height=\"500px;\" style=\"width:100%;border:none\" src=\"http://" + ViewData["DomainShort"] + "/" + ViewData["ShortPath"] + "\"><a href=\"http://" + ViewData["DomainShort"] + "/" + ViewData["ShortPath"] + "\" title=\"My Form\" rel=\"nofollow\">Click here to fill-out my form</a></iframe>", new { rows = 7, cols = 70 })%>
    <br />
    <a href="<%: "javascript:copyToClipboard('<iframe allowTransparency=\"true\" frameborder=\"0\" scrolling=\"no\" height=\"500px;\" style=\"width:100%;border:none\" src=\"http://" + ViewData["DomainShort"] + "/" + ViewData["ShortPath"] + "\"><a href=\"http://" + ViewData["DomainShort"] + "/" + ViewData["ShortPath"] + "\" title=\"My Form\" rel=\"nofollow\">Click here to fill-out my form</a></iframe>');alert('Form tag copied! Now, paste it into a webpage.\\n\\nNOTE: If the copy function does not work in your browser, just copy the text above!');" %>"
        class="strong">Copy Form Tag</a>
</asp:Content>
<asp:Content ContentPlaceHolderID="footer" runat="server">
</asp:Content>
